package com.jinwei.qunguanjia.common.enums;

/**
 * @author wangyan
 * wrapper查询类型枚举
 */
public enum WrapperTypeEnum {
    EQUAL("eq","等于="),
    NO_EQUAL("ne","不等于<>"),
    GREATER_THAN("gt","大于>"),
    GREATER_THAN_OR_EQUAL("ge","大于等于>="),
    GREATER_THAN_OR_EQUAL_DATE("geDate","大于等于>="),
    LESS_THAN("lt","小于<"),
    LESS_THAN_OR_EQUAL("le","小于等于<="),
    LESS_THAN_OR_EQUAL_DATE("leDate","小于等于<="),
    BETWEEN("between","between 值1 and 值2"),
    IN("in","in 值1 值2"),
    NOT_BETWEEN("notBetween","not between 值1 and 值2"),
    LIKE("like","like '%值%'"),
    NOT_LIKE("notLike","not like '%值%' "),
    IS_NULL("isNull","字段is null"),
    IS_NOT_NULL("isNotNull","字段is not null"),
    GROUP_BY("groupBy","分组"),
    AND("and","and嵌套"),

    ;
    private String type;

    private String desc;


    WrapperTypeEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }
    /**
     * @return the code
     */
    public String getType() {
        return type;
    }

    /**
     * @return the name
     */
    public String getDesc() {
        return desc;
    }
}
